﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace HotelManagement
{
    public partial class LogFRM : Form
    {
        SqlConnection Cnn = new SqlConnection(Globals.DBConnection());
        DataSet ds = new DataSet();
        SqlDataAdapter da;
        public LogFRM()
        {
            InitializeComponent();
        }

        private void LogFRM_Load(object sender, EventArgs e)
        {
            da = new SqlDataAdapter("select lg_id as[کد],us_username as[نام کاربری],lg_operation as[عملیات],lg_date as[تاریخ],lg_time as[ساعت],lg_tablename as[مکان] from LOG,Users where lg_user_id=us_id", Cnn);
            da.Fill(ds);
            dGViewLog.DataSource = ds.Tables[0];
            
        }
    }
}
